import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitDataStruct = itf({
    payload: itf({
        enterprise: itf(Object.assign({
            id: 'string',
            code: 'string',
            name: 'string',
        })),
        isDealerUser: 'boolean',
    })
});

const content = {
    id: 'string',
    branchCode: 'string?|null',
    dealerCode: 'string? | null',
    dealerName: 'string? | null',
    currency: 'number? | null',
    accountBalance: 'number? | null',
    rmb: 'number? | null',
    lockAmount: 'number? | null',
    rowVersion: 'string? | null',
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign(content))]
    })
});

